package com.xxxx.paipaicars.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * Created by frank on 2023/2/14.
 */
@Data
public class BaseBean {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createdTime;

    /**
     * 创建人
     */
    @TableField(value = "created_people")
    private String createdPeople;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updatedTime;

    /**
     * 更新人
     */
    @TableField(value = "updated_people")
    private String updatedPeople;

    /**
     * 删除标识 正常: 1 删除: 0
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;
}
